package jiachunlei.strategy;

/**
 * @author 朝花不迟暮
 * @version 1.0
 * @date 2020/12/1 20:55
 */
public class Context
{
    private Strategy strategy;

    public Context(Strategy strategy)
    {
        this.strategy = strategy;
    }

    public double getResult(double... money)
    {
        return strategy.acceptCash(money);
    }
}
